package eraserhead.entity;

/**
 * Class for an edge between lines
 * @author Quanquan
 */
public class Edge {
	/** The position of the line on the left */
	int first;
	
	/** The height of this edge */
	int height;
	
	/** The position of the line on the right */
	int second;
	
	/**
	 * Create a new {@link Edge}
	 * @param first Position of left line
	 * @param second Position of right line
	 * @param height Height (in pixels) of the {@link Edge}
	 */
	public Edge (int first, int second, int height) {
		this.first = first;
		this.second = second;
		this.height = height;
	}
	
	/**
	 * Get the left line position
	 * @return Position of the left {@link Line}
	 */
	public int getLeft() {
		return first;
	}
	
	/**
	 * Get the right line position
	 * @return Position of the right {@link Line}
	 */
	public int getRight() {
		return second;
	}
	
	/**
	 * Get the height of the edge
	 * @return Height of the {@link Edge} in pixels
	 */
	public int getHeight() {
		return height;
	}
}
